import request from '@/utils/request'

// 创建订单检测信息
export function createOrderCheckInfo(data) {
  return request({
    url: '/system/order-check-info/create',
    method: 'post',
    data: data
  })
}

// 更新订单检测信息
export function updateOrderCheckInfo(data) {
  return request({
    url: '/system/order-check-info/update',
    method: 'put',
    data: data
  })
}

// 删除订单检测信息
export function deleteOrderCheckInfo(id) {
  return request({
    url: '/system/order-check-info/delete?id=' + id,
    method: 'delete'
  })
}

// 获得订单检测信息
export function getOrderCheckInfo(id) {
  return request({
    url: '/system/order-check-info/get?id=' + id,
    method: 'get'
  })
}

// 获得订单检测信息分页
export function getOrderCheckInfoPage(params) {
  return request({
    url: '/system/order-check-info/page',
    method: 'get',
    params
  })
}
// 导出订单检测信息 Excel
export function exportOrderCheckInfoExcel(params) {
  return request({
    url: '/system/order-check-info/export-excel',
    method: 'get',
    params,
    // responseType: 'blob'
  })
}


// 拆包视频上传
export function openVideoUpload(data) {
  return request({
    url: '/system/order-check-info/openVideoUpload',
    method: 'post',
    data: data
  })
}

// 上传报告
export function reportUpload(data) {
  return request({
    url: '/system/order-check-info/reportUpload',
    method: 'post',
    data: data
  })
}
